/** 投票
 * /vote/do_vote.json
 * result	string	ok/error
 * txt_msg	string	返回说明(失败时的错误信息)	error返回 txt_msg
 * token	string	返回唯一标识	ok返回 token
 * */

function show(pid) {
	$.ajax({
		type: "post",
		url: "/vote/do_vote.json",
		async: true,
		data: {
			pid: pid,
			token: token
		},
		success: function(data) {
			if (data.result == 'ok') {
				alert(data.token);
			} else {
				alert(data.txt_msg);
			}
		}
	});
}